<template>
<div>
  <el-breadcrumb separator-class="el-icon-arrow-right" style="font-size: 16px;">
    <el-breadcrumb-item :to="{ path: '/' }" style="font-size: 19px;">
      <i class="el-icon-s-home"></i> 个人中心
    </el-breadcrumb-item>
    <el-breadcrumb-item style="font-size: 17px">商品配送</el-breadcrumb-item>
  </el-breadcrumb>
  <el-card style="margin-top: 50px;background-color: deepskyblue;">
  <el-form :model="ruleForm"  ref="ruleForm" label-width="100px" class="demo-ruleForm">
    <div style="overflow: hidden">
    <el-form-item label="用户订单号" prop="purchaseId" style="width: 40%;float: left;">
      <el-input v-model="ruleForm.purchaseId"></el-input>
    </el-form-item>
    <el-form-item  label="客户姓名" prop="username" style="width: 40%;margin-left:50px;float: left;line-height: 62px">
      <el-input v-model="ruleForm.username"></el-input>
    </el-form-item>
    </div>
    <div style="overflow: hidden">
      <el-form-item label="客户电话" prop="customerPhone" style="width: 40%;float: left">
        <el-input v-model="ruleForm.customerPhone"></el-input>
      </el-form-item>
      <el-form-item  label="用户住址" prop="address" style="width: 40%;margin-left:50px;float: left;">
        <el-input v-model="ruleForm.address"></el-input>
      </el-form-item>
    </div>
    <div style="overflow: hidden">
      <el-form-item label="商品金额" prop="pay" style="width: 40%;float: left;">
        <el-input v-model="ruleForm.pay"></el-input>
      </el-form-item>
      <el-form-item label="配送状态" style="width: 40%;float: left;margin-left: 50px">
        <el-select v-model="ruleForm.deliveryStatus">
          <el-option label="配送中" value="shanghai"></el-option>
          <el-option label="已完成" value="beijing"></el-option>
        </el-select>
      </el-form-item>
    </div>
    <div style="overflow: hidden">
      <el-form-item label="配送员" prop="deliveryman" style="width: 40%;float: left">
        <el-input v-model="ruleForm.deliveryman"></el-input>
      </el-form-item>
      <el-form-item  label="配送员手机号" prop="deliverymanPhone" style="width: 40%;margin-left:50px;float: left;">
        <el-input v-model="ruleForm.deliverymanPhone"></el-input>
      </el-form-item>
    </div>
    <el-form-item label="更新时间" prop="date" style="width: 40%">
      <el-input v-model="ruleForm.date"><i slot="prefix" class="el-input__icon el-icon-timer"></i></el-input>
    </el-form-item>
    <el-form-item>
      <el-button type="primary" @click="submitForm('ruleForm')">提交</el-button>
      <el-button @click="resetForm('ruleForm')">取消</el-button>
    </el-form-item>
  </el-form>
  </el-card>


</div>
</template>

<script>
export default {
  data() {
    return {
      ruleForm: {
        purchaseId:'',
        username: '',
        deliveryman:'',
        deliverymanPhone:'',
        customerPhone:'',
        address:'',
        pay:'',
        deliveryStatus:'',
        date:''
      }
    };
  },
  methods: {
    submitForm(formName) {
      this.$refs[formName].validate((valid) => {
        if (valid) {
          alert('submit!');
        } else {
          console.log('error submit!!');
          return false;
        }
      });
    },
    resetForm(formName) {
      this.$refs[formName].resetFields();
    }
  }
}
</script>

<style scoped>

</style>